package com.fyzk.betcode;

import com.fyzk.activity.lottery.shuzicai.BallInfo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *	投注注码信息 
 */
public class BetLotteryInfo implements Serializable{
	
	public BetLotteryInfo(){
		
	}
 	
	public BetLotteryInfo(int wcodeID,String codeNum,String showZhuMa,long zhushu
			, List<List<BallInfo>> arr_infos, int popupID){
		
		this.wcodeID = wcodeID;
		this.codeNum = codeNum;
		this.showZhuMa = showZhuMa;
		this.zhushu = zhushu;
		this.arr_infos.clear();
		if (arr_infos != null) {
			for (int i = 0; i < arr_infos.size(); i++) {
				List<BallInfo> ballInfos = new ArrayList<>();
				for (int j = 0; j < arr_infos.get(i).size(); j++) {
					BallInfo info = arr_infos.get(i).get(j);
					BallInfo info1 = new BallInfo(info.getNum());
					info1.setNum(info.getNum());
					info1.setShow_num(info.getShow_num());
					info1.setSelected(info.isSelected());
					info1.isChecked = info.isChecked;
					ballInfos.add(info1);
				}
				this.arr_infos.add(ballInfos);
			}
		}
		this.popupID = popupID;
	}
	
	public long zhushu ;
	
	public String codeNum;
	public String showZhuMa;
	
	//画球
	public List<List<BallInfo>> arr_infos = new ArrayList<List<BallInfo>>();
	
	public int wcodeID;//玩法id
	public int popupID;//选球页显示哪个玩法的界面
}
